/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package aptech.eproject.logictics.dao.thinh.ManageTrip;
import aptech.eproject.logictics.db.*;
import java.util.Dictionary;
import java.util.List;
import javax.ejb.Remote;

/**
 *
 * @author HOANGTHINH
 */
@Remote
public interface ManageTripRemote  extends AddTripRemote{
    public java.util.Dictionary<Integer,Integer> cancelPackageTrip(int tripId,int warehouseId);
     public boolean isPackageAtDesBranch(int packageId,int warehouseId);

     public boolean savePackageTrip(int tripId,int branchId);
      public Integer changeStatusTripRoute(int tripId,int routeId,TripRouteStatus status);
      public Route getRouteHaveStatusComming(int tripId);
      public TripRouteStatus getTripRouteStatus(int routeId,int tripId);
       public boolean isContainRouteComming(List lstRouteId,int tripId);
        public boolean removeRouteInTrip(List lstRouteDeleted,int tripId);
    public java.util.List listRouteInTrip(int tripId);

    public void saveVehicleOfTrip(int tripId);

    public boolean isPackageAlreadyInDesBranch(int branchId, int packageId);

    public aptech.eproject.logictics.db.Trip findTrip(int tripId);

    public java.util.Dictionary isListPackageAtDesBranch(aptech.eproject.logictics.db.TripRoutePK tripRoutePK, int currentBranchId);

}
